// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   QNA2B207.java

package org.quickserver.net.GB268753QN.control;

import java.text.SimpleDateFormat;
import java.util.Date;
import org.quickserver.net.model.GB268753QN;
import org.quickserver.net.model.GBServerData;
import org.quickserver.net.server.ClientHandler;
import org.quickserver.util.data.dataProcessing;
import org.quickserver.util.state.QNA2B207State;

public class QNA2B207
{

    public QNA2B207()
    {
    }

    public static GB268753QN QNA2B207OBJ(ClientHandler handler, String strs[])
    {
        GBServerData ec = (GBServerData)handler.getClientData();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String stateTime[] = new String[6];
        stateTime[0] = strs[3];
        stateTime[1] = strs[4];
        stateTime[2] = strs[5];
        stateTime[3] = strs[6];
        stateTime[4] = strs[7];
        stateTime[5] = strs[8];
        String componentState[] = new String[1];
        componentState[0] = strs[2];
        GB268753QN GBQN = new GB268753QN();
        GBQN.setId(ec.getUniqueCode());
        GBQN.setUniqueCode(ec.getUniqueCode());
        GBQN.setUploadTime(sdf.format(new Date()));
        GBQN.setStateTime(dataProcessing.strsToTime(stateTime));
        GBQN.setSysType("");
        GBQN.setComponentType("");
        GBQN.setIsComponent("1");
        GBQN.setComponentStateMap(QNA2B207State.getQNA2B207State(componentState));
        GBQN.setSysAddress("");
        GBQN.setLoopNumber("");
        GBQN.setComponentNumber("");
        GBQN.setTwiceCode("");
        return GBQN;
    }
}
